﻿using CPPEI.Coolzon.Common;
using CPPEI.Coolzon.Service.Contract;
using Sunboxsoft.ChanceData.ServiceProxy.MainServiceRef;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.UI.Views.EventProxies
{
    public class RespSwapAreaHandler : BaseResponseHandler<RespSwapAreaData>
    {
        protected override void OnHandle(RemoteEventProxy remoteEventProxy, Response response, RespSwapAreaData responseData)
        {
            //remoteEventProxy.RenderView.SwapArea(responseData.Scene, responseData.SourceArea, responseData.DestArea);
            remoteEventProxy.RenderView.MoveArea(responseData.Scene, responseData.SourceArea, responseData.DestArea);
        }
    }
}
